/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package publicapplication;

import java.io.*;

/**
 *
 * @author houfukude
 */
public class MyMedia {
    String mediaName;    //出版物名称
    float price;       //出版物价格
    String press;     //出版社(磁带发行商)
    String artist;    //作者(演唱者)
    String ISBN;
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    void mediaNameInput() throws IOException{     //出版物名称输入
        System.out.println("input the name:");
        mediaName = br.readLine();
    }
    void mediaPriceInput() throws IOException{        //出版物价格输入
        System.out.println("input the price:");
        price = Float.valueOf(br.readLine()).floatValue();
    }
    void mediaPressInput() throws IOException{        //出版社(磁带发行商)输入
        System.out.println("input the press:");
        press = br.readLine();
    }
    void artistInput() throws IOException{      //作者或演唱者输入
        System.out.println("input the artist:");
        artist = br.readLine();
    }
    void ISBNInput() throws IOException{      //ISBN的输入
        System.out.println("input the ISBN:");
        ISBN = br.readLine();
    }

}
